package com.tid.hbasees.repo;


import com.tid.hbasees.model.AttackResource;
import com.tid.hbasees.utils.hbase.HBaseHelper;
import org.apache.hadoop.hbase.client.HTableInterface;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;
import java.io.IOException;
import java.util.List;

@Component
public class AttackResourceRepo {

    public static String TABLE_NAME = "attackResource";

    @Resource(name = "hbaseHelper")
    private HBaseHelper hbaseHelper;

    private HTableInterface getTable() throws IOException {
        return hbaseHelper.getTable(TABLE_NAME);
    }

    public void save(AttackResource attackResource) {

    }

    public void save(List<AttackResource> attackResources) {

    }

    public AttackResource getById(String id) {
        return null;
    }
}
